#include "Http.hpp"
#include "Log.hpp"

void Usage(std::string processname)
{
    std::cout << "Usage: " << processname << " port!";
}
int main(int args, char **argv)
{
    if (args != 2)
    {
        Usage(argv[0]);
        return -1;
    }
    uint16_t port = static_cast<uint16_t>(std::stoi(argv[1]));
    HttpModule::Http httpserver(port);
    LOG_INFO << "Server quit!";
    return 0;
}